package com.springboot.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.springboot.bean.TestBean;
import com.springboot.dao.Test1Dao;
import com.springboot.service.in.TestIn;

@Service("Test1Impl")
public class Test1Impl implements TestIn {

	@Autowired
	private Test1Dao test1Dao;

	@Override
	@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
	public TestBean getTestBeanById(String tableName, int id) {
		return test1Dao.getTestBeanById(tableName, id);
	}

}
